package com.cq.hd.product.api.dto;

import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class ActiveGoodsSubsidySonDto implements Serializable {

    @ApiModelProperty(value = "商户id(如果是多商户通用券，则传0)")
    private Long merchantId;

    @ApiModelProperty(value = "商品id/商户id(存在多个，使用英文逗号分割)")
    private String goodsId;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品价格（商户商品单价）")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "补贴金额")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal subsidyAmt;

    @ApiModelProperty(value = "商品图片(如果是多商户则为空)")
    private String goodsImgs;

    @ApiModelProperty(value = "是否是多商户通用券(1-否，2-是)")
    private Integer mulState;

}
